const Mock = require("mockjs");

// 随机生成数据
const { commodity } = Mock.mock({
    "commodity|4": [{
        "name": "@csentence(5, 6)",          // 商品名称
        "desc": "@csentence(10,20)",                // 商品描述
        "guarantee|1":['3天','5天','7天','15天'],    // 保质期
        "aftersale":"7天无理由退换货",            //售后
        "storeCondition|1":["冷藏",'干燥'],         //存储条件
        "place|1":["四川省成都市","四川省泸州市","浙江省杭州市","中山桥芜湖市"],     // 产地
        "specs|1":['750ml','600g','1.5L'],                             // 规格
        "pack|1":['袋','盒'],                        // 包装
        "sales|1":['3689','7589','10265'],                       // 销量
        "image":[],
    }]
})

// 并暴露出去
module.exports = { commodity }